-- GENERATED SPELL FOR [Sister Hatelash] --


function spell0_5785(pUnit, Event) --@Lightning Barrier,n/a--
pUnit:FullCastSpellOnTarget(6960,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5785', 0, 1)
end

function spell1_5785(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5785', 3000, 1)
end

function Sorts_5785(pUnit, Event)
local choix_sorts_5785 = math.random(0, 1)
if choix_sorts_5785 == 0 then
pUnit:RegisterEvent('spell0_5785', 1, 1)
end
if choix_sorts_5785 == 1 then
pUnit:RegisterEvent('spell1_5785', 1, 1)
end
end

function mob5785_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5785', math.random(1500, 3000), 1)
end

function mob5785_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5785_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5785_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5785, 1, 'mob5785_Action')
RegisterUnitEvent(5785, 2, 'mob5785_Leave')
RegisterUnitEvent(5785, 3, 'mob5785_Kill')
RegisterUnitEvent(5785, 4, 'mob5785_Die')
